<?php

class Damages_Methods_Request_ChangePassword extends Damages_Methods_Request {

  public $password;

  public function __construct($params) {
    $this->password = $params->password;
    parent::__construct($params);
  }

  /**
   * 
   * @return Damages_Methods_Response
   * @throws Damages_Exception_App
   */
  public function process() {
    Damages_Auth::getInstance()->changePassword($this->password);
    return new Damages_Methods_Response(true);
  }

}